<!--
 * @Date: 2024-02-05 11:26:10
 * @LastEditTime: 2024-05-16 11:13:19
 * @Description:
-->
<template>
  <div>
    <van-button type="primary" @click="goList('/order/list')">列表</van-button>
    <van-button type="primary" @click="goList('/order/otherList')">otherList列表</van-button>
    <van-button type="primary" @click="goList('/order/test')">test</van-button>
    <van-button type="primary" @click="goList('/order/upload')">upload</van-button>
    <TButton type="primary" @click="tButtonClick"> button按钮</TButton>
    <TButton type="primary" @click="goWx"> 跳转微信小程序</TButton>
  
  </div>
</template>

<script setup>
import {
  initLoad
} from '@/hooks/useLogin';

const router = useRouter()
const goList = (path) => {
  router.push({
    path,
    query: {}
  })
}
// 钉钉登录
// initLoad({
//     success() {
//       console.log('initLoad success', 1)
//       // downPullCallback()
//     },
//     error(err) {
//       console.log('initLoad error', err)
//     }
//   })

const tButtonClick = () => {
  console.log('tButtonClick')
}


</script>

<style lang="scss" scoped></style>
